package com.woniuxy.light_smart.service;

import com.woniuxy.light_smart.dto.ApplyDto;
import com.woniuxy.light_smart.dto.LoginDto;
import com.woniuxy.light_smart.dto.UpdatePwdDto;
import com.woniuxy.light_smart.dto.UserDto;
import com.woniuxy.light_smart.entity.User;
import com.woniuxy.light_smart.vo.UserVo;

import java.util.List;

import java.util.List;

public interface UserService {
    User selectByTelAndPsw(LoginDto loginDto);

    List<User> selectAll();


    int applyUser(ApplyDto applyDto);

    User selectByTelOrMail(String tel);


    int updateByPrimaryKeySelective(User record);

    int updatePwd(UpdatePwdDto updatePwdDto);
    List<UserVo> selectAllUserByLike(UserDto userDto);

    void insertToUser(UserDto userDto);

    UserVo selectByUid(Long id);

    int deleteByPrimaryKey(Long id);

    int updateUser(UserDto userDto);



}
